import com.by.dao.EmpDao;
import com.by.dao.impl.EmpDaoImpl;
import com.by.entity.Emp;
import org.junit.Test;

import java.util.List;

public class MyTest1 {
    @Test
    public void test1() {
        System.out.println("11111");
    }


    @Test
    public void testQueryEmp() {
        EmpDao empDao = new EmpDaoImpl();
        List<Emp> list = empDao.getAllEmp();
        //foreach迭代
        for (Emp e : list) {
            System.out.println(e.getEid() + "," + e.getEname());
        }

    }
}
